package com.cars.service;

import java.util.List;

import com.cars.dao.InventoryDao;
import com.cars.dto.Product;
import com.cars.dto.ProductLine;

public class InventoryService {
	InventoryDao inventoryDao = new InventoryDao();

	public List<Product> getAllProducts() {

		return inventoryDao.searchAllCars();
	}

	public List<Product> getProductsByPriceRange(Double lowerAmount,
			Double upperAmount) {

		return inventoryDao.searchCarsByPriceRange(lowerAmount, upperAmount);
	}

	public List<Product> getProductsByProductLine(String productLine) {

		return inventoryDao.searchProductsByProductLine(productLine);
	}

	public List<ProductLine> getAllProductLines() {

		return inventoryDao.getAllProductLines();
	}

}
